package com.tarena.micro.service.order.feign;

import com.tarena.micro.service.common.result.JsonResult;
import com.tarena.micro.service.pojo.param.StockReduceParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//http://micro-service-stock的功能
//访问库存接口的openFeign客户端
@FeignClient("micro-service-stock")
public interface StockClient {
    @PostMapping("/stock/reduce")
    JsonResult reduceStock(@RequestBody StockReduceParam param);
}
